package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GwPlatformRoleMenuAppletMapper;
import com.ruoyi.system.domain.GwPlatformRoleMenuApplet;
import com.ruoyi.system.service.IGwPlatformRoleMenuAppletService;

/**
 * 平台小程序端角色菜单关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-26
 */
@Service
public class GwPlatformRoleMenuAppletServiceImpl implements IGwPlatformRoleMenuAppletService 
{
    @Autowired
    private GwPlatformRoleMenuAppletMapper gwPlatformRoleMenuAppletMapper;

    /**
     * 查询平台小程序端角色菜单关联
     * 
     * @param platformRoleId 平台小程序端角色菜单关联主键
     * @return 平台小程序端角色菜单关联
     */
    @Override
    public GwPlatformRoleMenuApplet selectGwPlatformRoleMenuAppletByPlatformRoleId(String platformRoleId)
    {
        return gwPlatformRoleMenuAppletMapper.selectGwPlatformRoleMenuAppletByPlatformRoleId(platformRoleId);
    }

    /**
     * 查询平台小程序端角色菜单关联列表
     * 
     * @param gwPlatformRoleMenuApplet 平台小程序端角色菜单关联
     * @return 平台小程序端角色菜单关联
     */
    @Override
    public List<GwPlatformRoleMenuApplet> selectGwPlatformRoleMenuAppletList(GwPlatformRoleMenuApplet gwPlatformRoleMenuApplet)
    {
        return gwPlatformRoleMenuAppletMapper.selectGwPlatformRoleMenuAppletList(gwPlatformRoleMenuApplet);
    }

    /**
     * 新增平台小程序端角色菜单关联
     * 
     * @param gwPlatformRoleMenuApplet 平台小程序端角色菜单关联
     * @return 结果
     */
    @Override
    public int insertGwPlatformRoleMenuApplet(GwPlatformRoleMenuApplet gwPlatformRoleMenuApplet)
    {
        return gwPlatformRoleMenuAppletMapper.insertGwPlatformRoleMenuApplet(gwPlatformRoleMenuApplet);
    }

    /**
     * 修改平台小程序端角色菜单关联
     * 
     * @param gwPlatformRoleMenuApplet 平台小程序端角色菜单关联
     * @return 结果
     */
    @Override
    public int updateGwPlatformRoleMenuApplet(GwPlatformRoleMenuApplet gwPlatformRoleMenuApplet)
    {
        return gwPlatformRoleMenuAppletMapper.updateGwPlatformRoleMenuApplet(gwPlatformRoleMenuApplet);
    }

    /**
     * 批量删除平台小程序端角色菜单关联
     * 
     * @param platformRoleIds 需要删除的平台小程序端角色菜单关联主键
     * @return 结果
     */
    @Override
    public int deleteGwPlatformRoleMenuAppletByPlatformRoleIds(String[] platformRoleIds)
    {
        return gwPlatformRoleMenuAppletMapper.deleteGwPlatformRoleMenuAppletByPlatformRoleIds(platformRoleIds);
    }

    /**
     * 删除平台小程序端角色菜单关联信息
     * 
     * @param platformRoleId 平台小程序端角色菜单关联主键
     * @return 结果
     */
    @Override
    public int deleteGwPlatformRoleMenuAppletByPlatformRoleId(String platformRoleId)
    {
        return gwPlatformRoleMenuAppletMapper.deleteGwPlatformRoleMenuAppletByPlatformRoleId(platformRoleId);
    }
}
